package cn.toma.core.result;

/**
 * @author zqx
 * @version 1.0.0
 * @ClassName CodeMsg.java
 * @Description 自定义返回枚举
 * @createTime 2019年08月28日 14:32:00
 */

public enum CodeMsg
{

	/**
	 * 成功
	 */
	SUCCESS(200, "成功"),
	FAIL(400, "失败"),
	UNAUTHORIZED(401, "认证失败"),
	NOT_FOUND(404, "接口不存在"),
	INTERNAL_SERVER_ERROR(500, "服务器内部错误"),
	DECRYPT_FAIL(901, "解密失败"),
	QRCODE_FAIL(902, "获取小程序码失败"),
	UPLODA_FILE_FAIL(903, "上传文件失败"),
	IMG_CODE_EXPIRED(904, "验证码过期"),
	IMG_CODE_FAIL(905, "验证码错误"),
	PHONE_FORMAT_FAIL(906, "手机号码格式错误"),
	PHONE_NULL(907, "请先绑定手机号码"),
	IMG_CODE_NULL(908, "请输入图形验证码"),


	USER_NOT_FOUND(1001, "不存在此用户"),
	PHONE_EXIST(1002, "手机已被绑定，请更换手机号码在进行绑定"),
	NOT_EXIST_UNAUTHORIZED(1003, "暂未认证"),


	;
	private Integer code;
	private String msg;

	CodeMsg(Integer code, String msg)
	{
		this.code = code;
		this.msg = msg;
	}

	public Integer getCode()
	{
		return code;
	}


	public String getMsg()
	{
		return msg;
	}


}
